package com.yyysj.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yyysj.system.domain.po.Comment;
import org.apache.ibatis.annotations.Param;
import java.util.List;

public interface CommentMapper extends BaseMapper<Comment> {
    // 查询评论列表
    List<Comment> selectCommentList(@Param("commentId") Long commentId,
                                    @Param("postId") Long postId,
                                    @Param("nickName") String nickName);

    // 更新评论状态
    int updateCommentStatus(@Param("commentId") Long commentId, @Param("status") Integer status);

    // 删除评论
    int deleteComment(@Param("commentId") Long commentId);
}
